Lesson: 27 - Text to speech and Video sensing

Purpose : Understand how to use Text to Speech to create talking sprites and how to apply Video Sensing to detect motion from a webcam and trigger events.

Materials Required

Scratch 3.0

Prior knowledge

Familiarity with basic Scratch concepts (Events, Loops, Variables, Clones, Custom Blocks).

Exercises

Exercise:1



  1. Insert a banana sprite. The banana will keep falling from top to bottom. If video motion on the banana is greater than 50 the banana will once again start falling from top and the score will be increased.

  2. Click here to see model video for exercise 1.


    Exercise:2



  3. Create a scratch code in which you have to insert four buttons: walk, fly, run, swim. When you click on each it will explain about that action and its benefits by using looks as well as text to speech.

  4. Click here to see model video for exercise 2.


Solutions



  • Click here to download the sb3 file for exercise 1.

  • Click here to download the sb3 file for exercise 2.


  • Teacher's Instruction
    1. Before starting, ensure students are familiar with basic Scratch blocks like Events, Motion, Looks, Operators, and how to create simple programs.
    2. Show students how to add extensions (Text to speech, Video sensing) in Scratch. It is not very important that students learn how to do this on their own.
    3. Ask the students to imagine how the computer will be doing text-to-speech. Using words, using phonetics, etc.